<?php


namespace frontend\controllers;
use frontend\models\Order;
use Yii;
use frontend\models\User;

class MyorderController   extends  BaseController
{
    /*
     * 我的订单数据接口*/
      public function actionGetData(){
          $user_id=User::getUserId();
          $order=Order::getUserorder($user_id);
          echo json_encode($order);
      }
      public function actionIndex(){
          return $this->render('order');
      }
}